﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fornecedor.aspx.cs" Inherits="PedidoWeb.Telas.Fornecedor" MasterPageFile="~/Site.Master"%>

<asp:Content ID="conteudo" ContentPlaceHolderID="MainContent" runat="server">
    <div style="height: 489px">
    
        <asp:Label ID="Label8" runat="server" Font-Bold="True" 
            Text="Cadastro de Fornecedor"></asp:Label>
    
        <br />
        <br />
        <table style="width:100%;">
            <tr>
                <td class="style6">
                    <asp:Label ID="lblException" runat="server"></asp:Label>
                </td>
                <td class="style5">
                    &nbsp;</td>
                <td>
                    <asp:DropDownList ID="cmbAcao" runat="server" 
                        onselectedindexchanged="cmbAcao_SelectedIndexChanged" AutoPostBack="True">
                        <asp:ListItem Value="0">Cadastrar</asp:ListItem>
                        <asp:ListItem Value="1">Consultar</asp:ListItem>
                        <asp:ListItem Value="2">Alterar</asp:ListItem>
                        <asp:ListItem Value="3">Cancelar</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    Código</td>
                <td class="style5">
                    <asp:TextBox ID="txtCodigo" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    Nome</td>
                <td class="style5">
                    <asp:TextBox ID="txtNome" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    CNPJ</td>
                <td class="style5">
                    <asp:TextBox ID="txtCpfCnpj" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    Endereço</td>
                <td class="style5">
                    <asp:TextBox ID="txtEnderco" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    Bairro</td>
                <td class="style5">
                    <asp:TextBox ID="txtBairro" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    Cidade</td>
                <td class="style5">
                    <asp:TextBox ID="txtCidade" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    UF</td>
                <td class="style5">
                    <asp:TextBox ID="txtUf" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    Tel1</td>
                <td class="style5">
                    <asp:TextBox ID="txtTel1" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    Tel2</td>
                <td class="style5">
                    <asp:TextBox ID="txtTel2" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style6">
                    Tel3</td>
                <td class="style5">
                    <asp:TextBox ID="txtTel3" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnAcao" runat="server" Text="Ação" onclick="btnAcao_Click" />
                </td>
            </tr>
            <tr>
                <td class="style6">
        <asp:GridView ID="dtgResultado" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" ForeColor="Black" GridLines="Vertical" Height="93px" 
            Width="487px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField HeaderText="Código" DataField="codigo" />
                <asp:BoundField HeaderText="Nome" DataField="nome" />
                <asp:BoundField HeaderText="CNPJ" DataField="cnpj" />
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
                </td>
                <td class="style5">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
   </div> 
    
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style4
        {
            width: 390px;
        }
        .style5
        {
            width: 94px;
        }
        .style6
        {
            width: 492px;
        }
    </style>
</asp:Content>
